package com.sise.parkinglot.controller;

import com.sise.parkinglot.bean.CodeMsg;
import com.sise.parkinglot.service.IIndexService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author ZJ
 */
@RestController
@RequestMapping("/parkinglot/index")
public class IndexController {

    @Resource
    private IIndexService indexService;

    @RequestMapping("/init")
    public CodeMsg<Map<String, Object>> init(){
        return indexService.init();
    }
}
